import { combineReducers } from 'redux'
import articleReducer from './article'
import channelReducer from './channel'

// 合并多个 reducer
const rootReducer = combineReducers({
  channel: channelReducer,
  article: articleReducer,
})

// 导出合并后的总 reducer
export default rootReducer
